<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Đăng ký thành viên';
$this->breadcrumbs=array(
	'Đăng ký',
);

?>

<h1>Đăng ký thành viên</h1>

<div class="form" id="login">
<?php 
$form = $this->beginWidget('CActiveForm',array(
   'id' => 'reg-form',
   'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
   'method' => 'POST',
));?>
   <p class="note">Những dòng đánh dấu <span class="required">*</span> là bắt buộc nhập.</p>
   <?php if(Yii::app()->user->hasFlash('success')){
      echo CHtml::tag('div',array(
         'class' => 'bg-success well-lg',
      ),Yii::app()->user->getFlash('success'));
   }?>
   <div >
      <?php echo $form->labelEx($model,'MemberName');?>
      <?php echo $form->error($model,'MemberName');?>
      <?php echo $form->textField($model,'MemberName');?>
   </div>
	<div>
		<?php echo $form->labelEx($model,'LoginName');?>
      <?php echo $form->error($model,'LoginName');?>
      <?php echo $form->textField($model,'LoginName');?>
   </div>

	<div class="">
      <?php echo $form->labelEx($model,'Password');?>
      <?php echo $form->error($model,'Password');?>
      <?php echo $form->passwordField($model,'Password');?>
   </div>
   <div class="">
		<?php echo $form->labelEx($model,'repeatPassword');?>
      <?php echo $form->error($model,'repeatPassword');?>
      <?php echo $form->passwordField($model,'repeatPassword');?>                               	
   </div>
   <div class="">
      <?php echo $form->labelEx($model,'Email');?>
      <?php echo $form->error($model,'Email');?>                                           
      <?php echo $form->textField($model,'Email');?>		
   </div>
   
   <div class="">
      <?php echo $form->labelEx($model,'Address');?>
      <?php echo $form->error($model,'Address');?>                                           
      <?php echo $form->textField($model,'Address',array(
         'style' => 'width:400px',
      ));?>
   </div>
   
   <div class="">
      <?php echo $form->labelEx($model,'Mobile');?>
      <?php echo $form->error($model,'Mobile');?>                                           
      <?php echo $form->textField($model,'Mobile');?>		
   </div>
	<div class="buttons">
      <?php echo CHtml::submitButton('Đăng ký',array(
         'class' => 'btn',
      ));?>			
   </div>

<?php $this->endWidget();?>
</div><!-- form -->
